﻿$(document).ready(function(){
	$('[id$="DateStartTextBox"]').datepicker({
		changeMonth: true,
		changeYear: true,
		dateFormat: "dd/mm/yy"
	});
	$('[id$="DateEndTextBox"]').datepicker({
		changeMonth: true,
		changeYear: true,
		dateFormat: "dd/mm/yy"
	});
	
	
	var fullDate = new Date();
	var twoDigitDay = ((fullDate.getDate()) > 9)? (fullDate.getDate()) : '0' + (fullDate.getDate());
	var twoDigitMonth = ((fullDate.getMonth()) > 9)? (fullDate.getMonth()+1) : '0' + (fullDate.getMonth()+1);
	$('[id$="DateStartTextBox"]').val(twoDigitDay + '/' + twoDigitMonth + '/' + (fullDate.getFullYear()-1));
	
	$('[id="s4-leftpanel"]').hide();

});